import axios from 'axios'
let instance = axios.create({
    baseURL:'http://8.141.145.150:3000',
     timeout:2000 
})
// 请求拦截
instance.interceptors.request.use(config=>{
    return config
},(err)=>{
    return Promise.reject(err)
})
// 响应拦截
instance.interceptors.response.use(res=>{
    return Promise.resolve(res)
},(err)=>{
    return Promise.reject(err)
})
export default instance

